import {axios} from '@/utils/request'

/**
 * 客户分诊
 *
 * @author chen
 */
//接待列表
export function receiveList (parameter) {
  return axios({
    url: '/receive/receiveList',
    method: 'get',
    params: parameter
  })
}
//添加接待
export function receiveAdd (parameter) {
  return axios({
    url: '/receive/add',
    method: 'post',
    data: parameter
  })
}

//添加分诊
export function triageAdd (parameter) {
  return axios({
    url: '/tbTriage/add',
    method: 'post',
    data: parameter
  })
}


//转诊
export function referral (parameter) {
  return axios({
    url: '/tbTriage/addzz',
    method: 'post',
    data: parameter
  })
}

//取消分诊
export function triageCancel (parameter) {
  return axios({
    url: '/tbTriage/cancel',
    method: 'post',
    data: parameter
  })
}

//获取客户信息
export function getInfo (params) {
  return axios({
    url: `/receive/getInfo`,
    method: 'get',
    params:params,
  })
}

//诉求项目
export function receiveItem (receiveId) {
  return axios({
    url: `/receive/getReceiveDetailList`,
    // method: 'get',
    method: 'post',
    data:receiveId

  })
}
//通过字典配置的下拉接口菜单
export function dictTypeListForCode (params) {
  return axios({
    url: 'common/dropdown/getUserListByPosCode',
    method: 'get',
    params:params
  })
}

// 客户分诊 点分诊  更换选择 咨询师
export function getZXS(){
  return axios({
    url: 'common/dropdown/getAllZixun',
    method: 'get',
  })
}





//咨询师名单--写死的
export function sysUser (roleId) {
  return axios({
    url: `/common/userByRole?roleId=${roleId}`,
    method: 'get',
  })
}

//咨询师助理--写死的
export function sysUserAssistant (roleId) {
  return axios({
    url: `/common/userByRole?roleId=${roleId}`,
    method: 'get',
  })
}

//咨询师助理接口--写死的
export function findUserList () {
  return axios({
    url: `/common/findUserList1`,
    method: 'get'
  })
}


